<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>  

<html>
<head>
<link rel="stylesheet" type="text/css" href="resources/css/Table.css" media="screen" />
<link rel="stylesheet" type="text/css" href="resources/css/layout.css" media="screen" />
<link rel="stylesheet" type="text/css" href="resources/css/Messages.css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<div id="outer">
		<div id="header">
			<img border="0" src="images/AuctionIcon.png" alt="Hammer"
				width="1000" height="256" />
			<br>
			<c:if test="${UserBean.loggedIn == true}">
	Logged in as:			<c:out value="${UserBean.name}" /><br>
	Click here to log out 
			<br>
			<form name="logOut" action="UserServlet?page=logout" method="post">
			<input type="submit" value="LogOut" />
				</form>
			</c:if>

		</div>
		<div id="mainnav">
			<ul>
				<li><a href="MainServlet?page=recenteVeilingen">Recente veilingen</a></li>
				<c:choose>
					<c:when test="${UserBean.loggedIn == true}">
						<li><a href="MainServlet?page=newVeiling">Nieuwe veiling</a></li>
						<li><a href="VeilingServlet?mijnVeilingen=">Mijn veilingen</a></li>
						<li><a href="VeilingServlet?mijnBiedingen=">Mijn Biedingen</a></li>
						<li><a href="VeilingServlet?deleteVeilingenLijst=">Verwijder veiling</a></li>
					</c:when>
					<c:otherwise>
						<li><a href="MainServlet?page=login">Login</a></li>
						<li><a href="MainServlet?page=newUser">Registreer</a></li>
					</c:otherwise>
				</c:choose>
			</ul>
		</div>
		<div id="main">
</body>
</html>